<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>外发简历</title>
</head>
<?php
include("../inc/global.inc");
include("../islogin.php");
include("../inc/fun.php");
if($_POST[act]){
     if($_SESSION['chkCode']==$_POST['c_code']){
	    
		$rs=@mysql_query("select * from job_per where id='$_POST[from_id]'");
		$row=@mysql_fetch_array($rs);

if($row[p_sex]==2){
$p_sex="男";
}else{
$p_sex="女";
}

if($row[p_nation]==1){
$p_nation="汉族";
}else if($row[p_nation]==2){
$p_nation="壮族";
}else if($row[p_nation]==3){
$p_nation="满族";
}else if($row[p_nation]==4){
$p_nation="回族";
}else if($row[p_nation]==5){
$p_nation="苗族";
}else if($row[p_nation]==6){
$p_nation="维吾尔族";
}else if($row[p_nation]==7){
$p_nation="彝族";
}else if($row[p_nation]==8){
$p_nation="土家族";
}else if($row[p_nation]==9){
$p_nation="蒙古族";
}else if($row[p_nation]==10){
$p_nation="藏族";
}else if($row[p_nation]==11){
$p_nation="侗族";
}else if($row[p_nation]==12){
$p_nation="瑶族";
}else if($row[p_nation]==13){
$p_nation="朝鲜族";
}else if($row[p_nation]==14){
$p_nation="其他民族";
}

if($row[p_nation]==1){
$p_nation="全职";
}else if($row[p_nation]==2){
$p_nation="兼职";
}else if($row[p_nation]==3){
$p_nation="实习";
}

if($row[p_married]==1){
$p_married="已婚";
}else if($row[p_married]==2){
$p_married="未婚";
}
if($row[p_tel]!="-"){
$p_tel=$row[p_tel];
}

if($row[p_exp]==2){
$p_exp="1年以下";
}else if($row[p_exp]==3){
$p_exp="1-2年";
}else if($row[p_exp]==4){
$p_exp="3-5年";
}else if($row[p_exp]==5){
$p_exp="6-7年";
}else if($row[p_exp]==6){
$p_exp="8-10年";
}else if($row[p_exp]==7){
$p_exp="10年以上年";
}


if($row[p_edu]==2){
$p_edu="高中及高中以下";
}else if($row[p_edu]==3){
$p_edu="技校";
}else if($row[p_edu]==4){
$p_edu="中专";
}else if($row[p_edu]==5){
$p_edu="大专";
}else if($row[p_edu]==6){
$p_edu="本科";
}else if($row[p_edu]==7){
$p_edu="硕士";
}else if($row[p_edu]==8){
$p_edu="博士及博士以上";
}


if($row[p_nature]==1){
$p_nature="全职";
}else if($row[p_nature]==2){
$p_nature="兼职";
}else if($row[p_nature]==3){
$p_nature="实习";
}

if($row[p_status]==1){
$p_status="目前我处于离职状态，可随时上岗。";
}else if($row[p_status]==2){
$p_status="我目前在职，正考虑换个新工作（如有合适的工作机会，到岗时间一个月左右）";
}else if($row[p_status]==3){
$p_status="我对现有工作还算满意，如有更好的工作机会，我也可以考虑（到岗时间另议）";
}else if($row[p_status]==4){
$p_status="应届毕业生";
}else if($row[p_status]==5){
$p_status="目前暂无跳槽打算";
}
$p_class=split("@",$row[p_class]);
$sqls=" and (";
for($i=0;$i<=count($p_class);$i++){
if($p_class[$i]){
$sqls=$sqls." id='$p_class[$i]'";
if($p_class[$i+1]){
$sqls=$sqls." or ";}}}
$sqls=$sqls." )";
$rs2=@mysql_query("select * from job_class where j_c_id=0 ".$sqls." order by id asc");
while($row2=@mysql_fetch_array($rs2)){
$j_c_name.=$row2[j_c_name]."，";
}
if($row[p_isopen]==1){
$p_isopen="是";
}else if($row[p_isopen]==2){
$p_isopen="否";
}

if($row[p_salary]==2){
$p_salary="1000元/月以下";
}else if($row[p_salary]==3){
$p_salary="1000-2000元/月";
}else if($row[p_salary]==4){
$p_salary="2001-4000元/月";
}else if($row[p_salary]==5){
$p_salary="4001-6000元/月";
}else if($row[p_salary]==6){
$p_salary="6001-8000元/月";
}else if($row[p_salary]==7){
$p_salary="8001-10000元/月";
}else if($row[p_salary]==8){
$p_salary="10001-15000元/月";
}else if($row[p_salary]==9){
$p_salary="15000-25000元/月";
}else if($row[p_salary]==10){
$p_salary="25000元/月以上";
}



if($row[p_expected_salary]==1){
$p_expected_salary="面谈";
}else if($row[p_expected_salary]==2){
$p_expected_salary="1000元/月以下";
}else if($row[p_expected_salary]==3){
$p_expected_salary="1000-2000元/月";
}else if($row[p_expected_salary]==4){
$p_expected_salary="2001-4000元/月";
}else if($row[p_expected_salary]==5){
$p_expected_salary="4001-6000元/月";
}else if($row[p_expected_salary]==6){
$p_expected_salary="6001-8000元/月";
}else if($row[p_expected_salary]==7){
$p_expected_salary="8001-10000元/月";
}else if($row[p_expected_salary]==8){
$p_expected_salary="10001-15000元/月";
}else if($row[p_expected_salary]==9){
$p_expected_salary="15000-25000元/月";
}else if($row[p_expected_salary]==10){
$p_expected_salary="25000元/月以上";
}

if($row[p_image]){
$img="<img src='http://job.sandib2b.cn/upfile/$row[p_image]' width='100' height='100' />";
}




$p_hy=split("@",$row[p_hy]);
		  $sqls=" and (";
		  for($i=0;$i<=count($p_hy);$i++){
		      if($p_hy[$i]){
		       $sqls=$sqls." id='$p_hy[$i]'";
			     if($p_hy[$i+1]){
			        $sqls=$sqls." or ";
					}
				}
		  }
		  $sqls=$sqls." )";
		  $rs2=@mysql_query("select * from job_hy where job_hy_id=0 ".$sqls." order by id asc");
		  while($row2=@mysql_fetch_array($rs2)){
		  
		  $job_hy_name.=$row2[job_hy_name]."，";}
$box_text=$_POST[box_text]; 
//start sent email
		       
			   
					 $content=iconv("utf-8","gb2312","<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd'>
<HTML xmlns='http://www.w3.org/1999/xhtml'>
<HEAD>
<TITLE>简历中心</TITLE>
<META http-equiv=Content-Type content='text/html; charset=gb2312'>
<style type='text/css'>
<!--

.title5 {
	PADDING-RIGHT: 0px; PADDING-LEFT: 10px; FONT-SIZE: 22px; PADDING-BOTTOM: 0px; LINE-HEIGHT: 27px; PADDING-TOP: 0px; FONT-FAMILY: '宋体'; TEXT-DECORATION: none
}
.title {
	PADDING-RIGHT: 0px; BACKGROUND-POSITION: 5px -753px; PADDING-LEFT: 40px; BACKGROUND-IMAGE: url(../images/arrow.gif); PADDING-BOTTOM: 0px; MARGIN-LEFT: 10px; LINE-HEIGHT: 27px; MARGIN-RIGHT: 10px; PADDING-TOP: 0px; BORDER-BOTTOM: #ffd0a6 1px solid; BACKGROUND-REPEAT: no-repeat; FONT-FAMILY: '宋体'; TEXT-DECORATION: none
}
.title SPAN {
	FLOAT: right; MARGIN-BOTTOM: 0px
}
#mian {
	MARGIN-LEFT: auto;
	WIDTH: 800px;
	MARGIN-RIGHT: auto;
	font-size: 12px;
	border: 1px solid #FFD0A6;
}
#mian .in {
	FLOAT: left; MARGIN-LEFT: 6px; WIDTH: 400px
}
#mian .leftmain {
	FLOAT: left; WIDTH: 220px
}
#mian .left {
	WIDTH: 220px
}
#mian .left H1 {
	PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-WEIGHT: bold; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; MARGIN: 0px; PADDING-TOP: 5px; TEXT-ALIGN: left; TEXT-DECORATION: underline
}
#mian .left SPAN {
	DISPLAY: block; PADDING-LEFT: 2px; PADDING-BOTTOM: 5px; LINE-HEIGHT: 25px; PADDING-TOP: 5px; TEXT-ALIGN: left
}
#mian .left SPAN A {
	MARGIN-RIGHT: 8px; TEXT-DECORATION: underline
}
#mian .JobBox {
	
}
#mian .JobBox A {
	TEXT-DECORATION: none
}
#mian .JobBox A:hover {
	COLOR: #006699; TEXT-DECORATION: underline
}
#mian .ad {
	FLOAT: left; WIDTH: 700px
}

#box {
	MARGIN-LEFT: auto; MARGIN-RIGHT: auto
}
.mian_Co {
	PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; MARGIN: 0px; PADDING-TOP: 5px
}
.mian_Co .mian_CoBox {
	BORDER-RIGHT: #ece9d8 1px solid; BORDER-TOP: #ece9d8 1px solid; FLOAT: left; MARGIN: 3px; BORDER-LEFT: #ece9d8 1px solid; WIDTH: 230px; COLOR: #666666; BORDER-BOTTOM: #ece9d8 1px solid; BACKGROUND-COLOR: #f9f7f4
}
.mian_CoBox DIV {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; LINE-HEIGHT: 22px; PADDING-TOP: 0px; TEXT-ALIGN: left
}
.mian_CoBox SPAN {
	DISPLAY: block; PADDING-LEFT: 13px; FONT-WEIGHT: normal; LINE-HEIGHT: 22px
}
.mian_CoBox SPAN A {
	COLOR: #3366cc
}
.mian_Co TABLE TD {
	BORDER-BOTTOM: #f5f4f1 0px solid
}
.mian_Co .table {
	PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px
}
.mian_Co .table .jobtxt P {
	MARGIN: 0px 0px 5px; TEXT-INDENT: 25px
}
.mian_Co .table .jobtxt {
	PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; LINE-HEIGHT: 20px; PADDING-TOP: 10px
}
.mian_Co .table .txt1 {
	COLOR: #333333; LINE-HEIGHT: 23px
}
.mian_Co A {
	FONT-SIZE: 12px; COLOR: #333333; FONT-FAMILY: '宋体'; TEXT-DECORATION: none
}
.mian_Co A:hover {
	COLOR: #ff6600; TEXT-DECORATION: underline
}
.STYLE1 {
	font-size: 12px;
	font-weight: bold;
	color:red;
}

-->
</style>
</HEAD>
<BODY>
<table width='800' height='29' border='0' align='center' cellpadding='0' cellspacing='0'>
  <tr>
    <td align='left'>".$box_text."</td>
  </tr>
</table>
<DIV id='mian'>
<DIV id='box'>
<DIV class='JobBox sideyellow topside6'>
<DIV class='mian_Co'>
<TABLE height='69' cellSpacing='0' cellPadding='0' width='100%' border='0'>
  <TR>
    <TD height='69'><IMG src='http://job.sandib2b.cn/mail_job_images/joglogo.gif'>&nbsp;&nbsp;<IMG height='49' alt='简历' src='http://job.sandib2b.cn/mail_job_images/jiali.gif' width='155'></TD>
	</TR>
</TABLE>
<DIV class='title size14 topside6'><STRONG>基 本 信 息</STRONG><span class='STYLE1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;免费发布招聘，求职信息</span></DIV>
<TABLE cellSpacing='0' cellPadding='0' width='95%' align='center' border='0'>
  <TBODY>
  <TR>
    <TD width='106' height='30'>姓&nbsp;&nbsp;&nbsp; 名：</TD>
    <TD width='205'>".$row[p_name]."</TD>
    <TD width='121'>身&nbsp;&nbsp;&nbsp; 高：</TD>
    <TD width='134'>".$row[p_height]."</TD>
    <TD align='center' width='135' rowSpan='5'>".$img."</TD>
  </TR>
  <TR>
    <TD width='106' height='30'>性&nbsp;&nbsp;&nbsp; 别：</TD>
    <TD>".$p_sex."</TD>
    <TD>民&nbsp;&nbsp;&nbsp; 族：</TD>
    <TD>".$p_nation."</TD>
  </TR>
  <TR>
    <TD width='106' height='30'>婚姻状况：</TD>
    <TD>".$p_married."</TD>
    <TD>户口所在地： </TD>
    <TD>".$row[p_hukou_pro2]."&nbsp;".$row[p_hukou_city2]."
	</TD>
 </TR>
  <TR>
    <TD width='106' height='30'>出生日期：</TD>
    <TD>".$row[p_birth_y]."-".$row[p_birth_m]."-".$row[p_birth_d]."</TD>
    <TD>住&nbsp;&nbsp;&nbsp; 址：</TD>
    <TD>".$row[p_address]."</TD></TR>
  <TR>
    <TD width='106' height='30'>现居住地：</TD>
    <TD>".$row[p_pro2]."&nbsp;".$row[p_city2]."</TD>
    <TD>固定电话：</TD>
    <TD>".$p_tel."</TD>
 </TR>
  <TR>
    <TD width='106' height='30'>邮&nbsp;&nbsp;&nbsp; 编：</TD>
    <TD>".$row[p_post]."</TD>
    <TD>电子邮件：</TD>
    <TD colSpan=2>".$row[p_email]."</TD>
 </TR>
  <TR>
    <TD width='106' height='30'>移动电话：</TD>
    <TD>".$row[p_phone]."</TD>
    <TD>目前待遇：</TD>
    <TD colSpan=2>".$p_salary."</TD></TR>
  <TR>
    <TD width='106' height='30'>工作经验：</TD>
    <TD>".$p_exp."</TD>
    <TD>学历：</TD>
    <TD colSpan='2'>".$p_edu."</TD>
	</TR>
 </TBODY>
</TABLE>
<DIV class='title size14 topside6'><STRONG>自我评价</STRONG></DIV>
<TABLE height='35' cellSpacing='0' cellPadding='5' width='95%' align='center' border='0'>
<TBODY>
  <TR>
    <TD width='16%'>自我评价：</TD>
    <TD style='PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; LINE-HEIGHT: 22px; PADDING-TOP: 5px' width='84%'>".$row[p_comment]."</TD>
	</TR>
</TBODY>
</TABLE>
<DIV class='title size14 topside6'><STRONG>求职意向</STRONG></DIV>
<TABLE cellSpacing='0' cellPadding='7' width='95%' align='center' border='0'>
  <TBODY>
  <TR>
    <TD width='16%'>期望工作性质：</TD>
    <TD width='84%'>".$p_nature."</TD>
 </TR>
  <TR>
    <TD>期望工作地区：</TD>
    <TD>".$row[p_qw_city]."&nbsp;".$row[p_qw_dq]."</TD>
 </TR>
  <TR>
    <TD>期望工作行业：</TD>
    <TD>".$job_hy_name."</TD></TR>
  <TR>
    <TD>期望工作职位：</TD>
    <TD>".$j_c_name."</TD></TR>
  <tr>
     <td>期望月薪：</td>
     <td>".$p_expected_salary."</td>
  </tr>
  <tr>
     <td>目前工作状况：</td>
     <td>".$p_status."</td>
  </tr>
  <tr>
     <td>简历是否公开：</td>
     <td>".$p_isopen."</td>
  </tr>
</TBODY>
</TABLE>
<DIV class='title size14 topside6'><STRONG>工作经历</STRONG></DIV>
<TABLE cellSpacing='0' cellPadding='7' width='95%' align='center' border='0'>
  <TBODY>
  <TR>
    <TD width='16%'>&nbsp;</TD>
    <TD style='WORD-BREAK: break-all' width='84%'>".$row[job_work]."</TD>
	</TR>
 </TBODY>
</TABLE>
<DIV class='title size14 topside6'><STRONG>教育经历</STRONG></DIV>
<TABLE cellSpacing='0' cellPadding='7' width='95%' align='center' border='0'>
  <TBODY>
   <TR>
     <TD vAlign=top width='16%'>&nbsp;</TD>
     <TD style='WORD-BREAK: break-all' width='84%'>".$row[p_educate]."</TD>
   </TR>
</TBODY>
</TABLE>
<DIV class='title size14 topside6'><STRONG>语言能力</STRONG></DIV>
<TABLE cellSpacing='0' cellPadding='7' width='95%' align='center' border='0'>
  <TBODY>
  <TR>
    <TD vAlign=top width='16%'>&nbsp;</TD>
    <TD style='WORD-BREAK: break-all' width='84%'>".$row[p_lan]."</TD>
  </TR>
</TBODY>
</TABLE></DIV></DIV>
<DIV class=onl></DIV>
</DIV>
</DIV>
系统邮件请勿回复，http://job.sandib2b.cn
</BODY>
</HTML>");
					 $tomail=trim($_POST[box_mail]);
					 $box_title=iconv("utf-8","gb2312",$_POST[box_title]);
					 

					 sendmail($tomail,$box_title,$content);
//sent email end
            echo "<script>alert('发送成功');location='index.php';</script>";
	 }else{
          echo "<script>alert('验证码错误');location='javascript:history.go(-1)';</script>";
     }
}
?>

<style type="text/css">
<!--
.ta {
	font-size: 12px;
	color: #333333;
	border: 1px solid #ECE9D8;
}
.picbutt {
	background-image: url(../images/70.gif);
	display: block;
	height: 21px;
	width: 83px;
	line-height: 21px;
	text-align: center;
	border-top-width: 0px;
	border-right-width: 0px;
	border-bottom-width: 0px;
	border-left-width: 0px;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
}
.ta td {
	padding-left: 5px;
}
-->
</style>
<body>
<form id="form1" name="form1" method="post" action="" onsubmit="return checkform()">
<input type="hidden" name="from_id" value="<?=$_COOKIE[job_user_id]?>" />
  <table width="721" height="54" border="0" align="center" cellpadding="0" cellspacing="1" class="ta">
    <tr>
      <td height="50" colspan="2" background="../images/send1.gif"><h3>外发简历</h3></td>
    </tr>
  </table>
  <table width="721" height="220" border="0" align="center" cellpadding="0" cellspacing="1" class="ta">
    <tr>
      <td width="116" height="26" align="center" bgcolor="#EBEBEA"><strong>企业邮箱：</strong></td>
      <td width="597" bgcolor="#FFFFFF"><input name="box_mail" type="text" id="box_mail" size="45">
      注：多个邮箱用分号隔开“;”</td>
    </tr>
    <tr>
      <td width="116" height="26" align="center" bgcolor="#EBEBEA"><strong>主 题：</strong></td>
      <td width="597" bgcolor="#FFFFFF"><input name="box_title" type="text" id="box_title" size="40" maxlength="250"></td>
    </tr>
    <tr>
      <td height="152" align="center" valign="top" bgcolor="#EBEBEA"><strong>内 容：</strong></td>
      <td bgcolor="#FFFFFF"><textarea name="box_text" id="box_text" cols="70" rows="12"></textarea></td>
    </tr>
	<tr>
      <td width="116" height="26" align="center" bgcolor="#EBEBEA"><strong>验证码：</strong></td>
      <td width="597" bgcolor="#FFFFFF"><input name="c_code" id="c_code" size="6" maxlength="6" />
          <img src="../inc/chk_num.php" name="img" height="25" align="absmiddle"  id="img"/>&nbsp;&nbsp;<a href="#" name="test" id="test">看不清楚？</a></td>
    </tr>
    <tr>
      <td height="36" colspan="2" align="center" bgcolor="#FAFAFA"><table width="70%" border="0" align="center" cellpadding="0" cellspacing="5">
          <tr>
            <td><input type="hidden" name="act" value="job.sandib2b.cn" /><input name="Submit" type="submit" class="picbutt" value=" 发 送 " /></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
</body>
</html>
<script language="javascript">
function $(id){
return document.getElementById(id);
}
function checkform(){
if($("box_mail").value==""){
alert("企业信箱不能为空");
$("box_mail").focus();
return false;
}
if($("box_title").value==""){
alert("主题不能为空");
$("box_title").focus();
return false;
}
if($("box_text").value==""){
alert("内容不能为空");
$("box_text").focus();
return false;
}

if($("c_code").value==""){
alert("验证码不能为空");
$("c_code").focus();
return false;
}
}


function test(img){
    var src=img.getAttribute("src");
    src=src+"?new="+Math.random(0,10);
    img.setAttribute("src",src);
}
function prepare(){
    var nav=document.getElementById("test");
    var name=nav.getAttribute("name");
    var str="test";
    if(name==str){
        nav.onclick=function(){
            var img=document.getElementById("img");
            test(img);
            return false;
        }
    }
}
window.onload=prepare;
</script>